//
//  NSString+FileSize.h
//  TravelGuideMdd
//
//  Created by 陈曦 on 13-6-4.
//  Copyright (c) 2013年 mafengwo.com. All rights reserved.
//

#import <Foundation/Foundation.h>

#define KBSIZE (1024ull)
#define MBSIZE (1024ull * KBSIZE)
#define GBSIZE (1024ull * MBSIZE)
#define TBSIZE (1024ull * GBSIZE)

@interface StringFileSizeItem : NSObject

@property (nonatomic, assign) unsigned long long size;
@property (nonatomic, assign) unsigned long long levelSize;
@property (nonatomic, copy) NSString *str;

@end
StringFileSizeItem* StringFileSizeItem_(unsigned long long size,
                                        unsigned long long levelSize,
                                        NSString *str);

@interface NSString(FileSize)

+ (NSString*)stringByFileSize:(unsigned long long)aFileSize;
+ (NSString*)stringByFileSize:(unsigned long long)aFileSize withItemArr:(NSArray*)arr;

@end
